﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace leapt.Domain.Entities
{
    /// <summary>
    /// 用户实体类
    /// </summary>
    [SugarTable("hf_user")]
    public class User
    {
        /// <summary>
        /// ID
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int Id { get; set; }

        /// <summary>
        /// 登陆名称
        /// </summary>
        public string LoginName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 真实姓名
        /// </summary>
        public string RealName { get; set; }
        /// <summary>
        /// 电子邮箱
        /// </summary>
        public string EmailAddress { get; set; }
        /// <summary>
        /// 用户头像
        /// </summary>
        public string Avatar { get; set; }
        /// <summary>
        /// 用户的状态，0：禁用，1：正常
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string Telephone { get; set; }
        /// <summary>
        /// 用户创建时间
        /// </summary>
        public DateTime CreatedOn { get; set; }
        /// <summary>
        /// 创建用户IP
        /// </summary>
        public string CreatedIp { get; set; }
        /// <summary>
        /// 登陆次数累计
        /// </summary>
        public int LoginCount { get; set; }
        /// <summary>
        /// 最近一次登陆时间
        /// </summary>
        public DateTime? LatestLoginDate { get; set; }
        /// <summary>
        /// 最近一次登陆ip
        /// </summary>
        public string LatestLoginIp { get; set; }
        /// <summary>
        /// 最近修改时间
        /// </summary>
        public DateTime? ModifiedOn { get; set; }
        /// <summary>
        /// 用户类型，[-1: 超级管理员， 0：一般用户]
        /// </summary>
        public int Type { get; set; }
    }
}
